//
//  KKNetwork.h
//  Questionnaire
//
//  Created by leo on 16/1/24.
//  Copyright © 2016年 leo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "KKNetworkRequest.h"
#import "KKNetworkResponse.h"

typedef void(^KKNetworkSuccessHandle)(KKNetworkResponse *response);
typedef void(^KKNetworkFaileHandle)(NSString *error);

@interface KKNetworkManager : NSObject

+ (void)sendPostRequest:(KKNetworkRequest *)request success:(KKNetworkSuccessHandle)successful faile:(KKNetworkFaileHandle)faile;

+ (void)sendDownloadFileRequest:(KKNetworkRequest *)request success:(KKNetworkSuccessHandle)successful faile:(KKNetworkFaileHandle)faile;

@end
